import request from "@/utils/request";
// 查询物料属性类型
export function listWlsxPro(data) {
  return request({
    url: "/material/pro/list",
    method: "post",
    data,
  });
}
//新增
export function addWlsxPro(data) {
  return request({
    url: "/material/pro",
    method: "post",
    data,
  });
}
//修改
export function editWlsxPro(data) {
  return request({
    url: "/material/pro",
    method: "put",
    data,
  });
}
//删除
export function delWlsxPro(id) {
  return request({
    url: "/material/pro/" + id,
    method: "delete",
  });
}
//自定义
export function listWlsx(data) {
  return request({
    url: "/material/property/list",
    method: "post",
    data,
  });
}
export function addWlsx(data) {
  return request({
    url: "/material/property",
    method: "post",
    data,
  });
}
//修改
export function editWlsx(data) {
  return request({
    url: "/material/property",
    method: "put",
    data,
  });
}
//删除
export function delWlsx(id) {
  return request({
    url: "/material/property/" + id,
    method: "delete",
  });
}

